package com.rchat.pocmini.activity.location;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.aso.common.http.utils.HttpUtils;
import com.rchat.pocmini.global.HttpCodeGlobal;
import com.rchat.pocmini.global.RequestParam;
import com.rchat.pocmini.global.UrlsGlobal;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by ljd on 2017/9/28.
 */

public class LocationModelImpl implements LocationContract.Model{
    @Override
    public void reqOtherLocation(String userName, String groupId, HttpCallbackImpl callback) {
        Map<String, String> param = new HashMap<>();
        param.put("userName", userName);
        param.put("groupId", groupId);
        //body = {"code":1225,"data":{"platform":1,"version":"1.0","enterprise":1,"groupId":"C20040","userName":"111110000088"}}
        String body = RequestParam.requestRootParam(HttpCodeGlobal.REQ_CODE_1225, param);
        HttpUtils.postAsyn(UrlsGlobal.getUrl(UrlsGlobal.LOCATION_REPORT), body, callback);

    }
}
